home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / ps / ds3100.md / mach.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-09  |  1.1 KB  |  44 lines

  1. /* 
  2.  * mach.c --
  3.  *
  4.  *    This file contains machine-dependent information needed by
  5.  *    the ps program.
  6.  *
  7.  * Copyright 1988 Regents of the University of California
  8.  * Permission to use, copy, modify, and distribute this
  9.  * software and its documentation for any purpose and without
  10.  * fee is hereby granted, provided that the above copyright
  11.  * notice appear in all copies.  The University of California
  12.  * makes no representations about the suitability of this
  13.  * software for any purpose.  It is provided "as is" without
  14.  * express or implied warranty.
  15.  */
  16.  
  17. #ifndef lint
  18. static char rcsid[] = "$Header: /sprite/src/cmds/ps/ds3100.md/RCS/mach.c,v 1.3 89/11/09 12:43:49 mendel Exp $ SPRITE (Berkeley)";
  19. #endif not lint
  20.  
  21.  
  22. /*
  23.  *----------------------------------------------------------------------
  24.  *
  25.  * getTicksPerSecond --
  26.  *
  27.  *    Return one second's worth of timer ticks for the current machine.
  28.  *      This is needed by ps to deal with weighted usages.
  29.  *
  30.  * Results:
  31.  *    One second's worth of timer ticks.
  32.  *
  33.  * Side effects:
  34.  *    None.
  35.  *
  36.  *----------------------------------------------------------------------
  37.  */
  38.  
  39. int
  40. getTicksPerSecond()
  41. {
  42.     return 1000000;
  43. }
  44.